home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1995-08-29 | 9.5 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 32 31 3a 31 | 39 20 31 39 39 35 0a 3b | 14:21:1|9 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 70 72 | 69 6d 2f 6d 65 6e 75 62 |/lisp/pr|im/menub|
|00000090| 61 72 2e 65 6c 0a 3b 3b | 3b 20 65 6d 61 63 73 20 |ar.el.;;|; emacs |
|000000a0| 76 65 72 73 69 6f 6e 20 | 31 39 2e 31 33 20 58 45 |version |19.13 XE|
|000000b0| 6d 61 63 73 20 4c 75 63 | 69 64 2e 0a 3b 3b 3b 20 |macs Luc|id..;;; |
|000000c0| 62 79 74 65 63 6f 6d 70 | 20 76 65 72 73 69 6f 6e |bytecomp| version|
|000000d0| 20 32 2e 32 35 3b 20 31 | 2d 53 65 70 2d 39 34 2e | 2.25; 1|-Sep-94.|
|000000e0| 0a 3b 3b 3b 20 6f 70 74 | 69 6d 69 7a 61 74 69 6f |.;;; opt|imizatio|
|000000f0| 6e 20 69 73 20 6f 6e 2e | 0a 3b 3b 3b 20 74 68 69 |n is on.|.;;; thi|
|00000100| 73 20 66 69 6c 65 20 75 | 73 65 73 20 6f 70 63 6f |s file u|ses opco|
|00000110| 64 65 73 20 77 68 69 63 | 68 20 64 6f 20 6e 6f 74 |des whic|h do not|
|00000120| 20 65 78 69 73 74 20 69 | 6e 20 45 6d 61 63 73 20 | exist i|n Emacs |
|00000130| 31 38 2e 0a 0a 28 69 66 | 20 28 61 6e 64 20 28 62 |18...(if| (and (b|
|00000140| 6f 75 6e 64 70 20 27 65 | 6d 61 63 73 2d 76 65 72 |oundp 'e|macs-ver|
|00000150| 73 69 6f 6e 29 0a 09 20 | 28 6f 72 20 28 61 6e 64 |sion).. |(or (and|
|00000160| 20 28 62 6f 75 6e 64 70 | 20 27 65 70 6f 63 68 3a | (boundp| 'epoch:|
|00000170| 3a 76 65 72 73 69 6f 6e | 29 20 65 70 6f 63 68 3a |:version|) epoch:|
|00000180| 3a 76 65 72 73 69 6f 6e | 29 0a 09 20 20 20 20 20 |:version|).. |
|00000190| 28 73 74 72 69 6e 67 2d | 6c 65 73 73 70 20 65 6d |(string-|lessp em|
|000001a0| 61 63 73 2d 76 65 72 73 | 69 6f 6e 20 22 31 39 22 |acs-vers|ion "19"|
|000001b0| 29 29 29 0a 20 20 20 20 | 28 65 72 72 6f 72 20 22 |))). |(error "|
|000001c0| 54 68 69 73 20 66 69 6c | 65 20 77 61 73 20 63 6f |This fil|e was co|
|000001d0| 6d 70 69 6c 65 64 20 66 | 6f 72 20 45 6d 61 63 73 |mpiled f|or Emacs|
|000001e0| 20 31 39 2e 22 29 29 0a | 0a 28 62 79 74 65 2d 63 | 19.")).|.(byte-c|
|000001f0| 6f 64 65 20 22 c0 c1 21 | ac 82 c2 11 c2 87 22 20 |ode "..!|......" |
|00000200| 5b 62 6f 75 6e 64 70 20 | 64 65 66 61 75 6c 74 2d |[boundp |default-|
|00000210| 6d 65 6e 75 62 61 72 20 | 6e 69 6c 5d 20 32 29 0a |menubar |nil] 2).|
|00000220| 28 66 73 65 74 20 27 6b | 69 6c 6c 2d 74 68 69 73 |(fset 'k|ill-this|
|00000230| 2d 62 75 66 66 65 72 20 | 23 5b 6e 69 6c 20 22 c0 |-buffer |#[nil ".|
|00000240| 70 21 87 22 20 5b 6b 69 | 6c 6c 2d 62 75 66 66 65 |p!." [ki|ll-buffe|
|00000250| 72 5d 20 32 20 22 5c 0a | 4b 69 6c 6c 20 74 68 65 |r] 2 "\.|Kill the|
|00000260| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 2e | current| buffer.|
|00000270| 22 20 6e 69 6c 5d 29 0a | 28 66 73 65 74 20 27 73 |" nil]).|(fset 's|
|00000280| 65 74 2d 6d 65 6e 75 62 | 61 72 20 23 5b 28 6d 65 |et-menub|ar #[(me|
|00000290| 6e 75 62 61 72 29 20 22 | c0 09 c2 5c 22 88 c3 c4 |nubar) "|...\"...|
|000002a0| c5 09 21 5c 22 88 c6 20 | 87 22 20 5b 63 68 65 63 |..!\".. |." [chec|
|000002b0| 6b 2d 6d 65 6e 75 2d 73 | 79 6e 74 61 78 20 6d 65 |k-menu-s|yntax me|
|000002c0| 6e 75 62 61 72 20 74 20 | 73 65 74 2d 64 65 66 61 |nubar t |set-defa|
|000002d0| 75 6c 74 20 63 75 72 72 | 65 6e 74 2d 6d 65 6e 75 |ult curr|ent-menu|
|000002e0| 62 61 72 20 63 6f 70 79 | 2d 73 65 71 75 65 6e 63 |bar copy|-sequenc|
|000002f0| 65 20 73 65 74 2d 6d 65 | 6e 75 62 61 72 2d 64 69 |e set-me|nubar-di|
|00000300| 72 74 79 2d 66 6c 61 67 | 5d 20 34 20 22 5c 0a 53 |rty-flag|] 4 "\.S|
|00000310| 65 74 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 6d |et the d|efault m|
|00000320| 65 6e 75 62 61 72 20 74 | 6f 20 62 65 20 4d 45 4e |enubar t|o be MEN|
|00000330| 55 42 41 52 2e 0a 53 65 | 65 20 60 63 75 72 72 65 |UBAR..Se|e `curre|
|00000340| 6e 74 2d 6d 65 6e 75 62 | 61 72 27 20 66 6f 72 20 |nt-menub|ar' for |
|00000350| 61 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6f 66 |a descri|ption of|
|00000360| 20 74 68 65 20 73 79 6e | 74 61 78 20 6f 66 20 61 | the syn|tax of a|
|00000370| 20 6d 65 6e 75 62 61 72 | 2e 22 5d 29 0a 28 66 73 | menubar|."]).(fs|
|00000380| 65 74 20 27 73 65 74 2d | 62 75 66 66 65 72 2d 6d |et 'set-|buffer-m|
|00000390| 65 6e 75 62 61 72 20 23 | 5b 28 6d 65 6e 75 62 61 |enubar #|[(menuba|
|000003a0| 72 29 20 22 c0 09 c2 5c | 22 88 c3 c4 21 88 c5 09 |r) "...\|"...!...|
|000003b0| 21 14 c6 20 87 22 20 5b | 63 68 65 63 6b 2d 6d 65 |!.. ." [|check-me|
|000003c0| 6e 75 2d 73 79 6e 74 61 | 78 20 6d 65 6e 75 62 61 |nu-synta|x menuba|
|000003d0| 72 20 74 20 6d 61 6b 65 | 2d 6c 6f 63 61 6c 2d 76 |r t make|-local-v|
|000003e0| 61 72 69 61 62 6c 65 20 | 63 75 72 72 65 6e 74 2d |ariable |current-|
|000003f0| 6d 65 6e 75 62 61 72 20 | 63 6f 70 79 2d 73 65 71 |menubar |copy-seq|
|00000400| 75 65 6e 63 65 20 73 65 | 74 2d 6d 65 6e 75 62 61 |uence se|t-menuba|
|00000410| 72 2d 64 69 72 74 79 2d | 66 6c 61 67 5d 20 33 20 |r-dirty-|flag] 3 |
|00000420| 22 5c 0a 53 65 74 20 74 | 68 65 20 62 75 66 66 65 |"\.Set t|he buffe|
|00000430| 72 2d 6c 6f 63 61 6c 20 | 6d 65 6e 75 62 61 72 20 |r-local |menubar |
|00000440| 74 6f 20 62 65 20 4d 45 | 4e 55 42 41 52 2e 0a 53 |to be ME|NUBAR..S|
|00000450| 65 65 20 60 63 75 72 72 | 65 6e 74 2d 6d 65 6e 75 |ee `curr|ent-menu|
|00000460| 62 61 72 27 20 66 6f 72 | 20 61 20 64 65 73 63 72 |bar' for| a descr|
|00000470| 69 70 74 69 6f 6e 20 6f | 66 20 74 68 65 20 73 79 |iption o|f the sy|
|00000480| 6e 74 61 78 20 6f 66 20 | 61 20 6d 65 6e 75 62 61 |ntax of |a menuba|
|00000490| 72 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 63 68 65 |r."]).(f|set 'che|
|000004a0| 63 6b 2d 6d 65 6e 75 2d | 73 79 6e 74 61 78 20 23 |ck-menu-|syntax #|
|000004b0| 5b 28 6d 65 6e 75 20 26 | 6f 70 74 69 6f 6e 61 6c |[(menu &|optional|
|000004c0| 20 6d 65 6e 75 62 61 72 | 2d 70 29 20 22 08 ac 8f | menubar|-p) "...|
|000004d0| 09 40 3b ac 87 c2 c3 c4 | 09 44 5c 22 88 09 41 11 |.@;.....|.D\"..A.|
|000004e0| c5 89 1e 06 1e 07 c8 09 | 40 89 16 06 21 ab b1 0e |........|@...!...|
|000004f0| 06 c9 3e ac 88 c2 c3 ca | 0e 06 44 5c 22 88 09 41 |..>.....|..D\"..A|
|00000500| ab 8e cb 09 41 40 21 ac | 87 c8 09 41 40 21 ab 8b |....A@!.|...A@!..|
|00000510| c2 c3 cc 0e 06 09 41 40 | 45 5c 22 88 09 41 41 11 |......A@|E\"..AA.|
|00000520| aa 46 09 85 97 01 09 40 | 89 16 07 3b ab ab cd ce |.F.....@|...;....|
|00000530| 0e 07 5c 22 83 8f 01 cf | 94 ad 87 0e 07 cf 94 cf |..\"....|........|
|00000540| 95 4f 89 16 06 83 8f 01 | 0e 06 d0 9d 84 8f 01 c2 |.O......|........|
|00000550| c3 d1 0e 06 44 5c 22 88 | 82 8f 01 0e 07 ac 8d 08 |....D\".|........|
|00000560| 84 8f 01 c2 c3 d2 43 5c | 22 88 82 8f 01 0e 07 3a |......C\|"......:|
|00000570| ab 88 d3 0e 07 21 88 82 | 8f 01 cb 0e 07 21 83 87 |.....!..|.....!..|
|00000580| 01 0e 07 47 c5 1e 14 89 | 1e 15 d6 57 ab 88 c2 c3 |...G....|...W....|
|00000590| d7 0e 07 44 5c 22 88 0e | 15 d8 59 ae 86 c8 0e 07 |...D\"..|..Y.....|
|000005a0| cf 48 21 16 14 0e 07 d9 | 48 3b ac 88 c2 c3 da 0e |.H!.....|H;......|
|000005b0| 07 44 5c 22 88 0e 14 ac | 9b 0e 15 db 57 ac 95 0e |.D\"....|....W...|
|000005c0| 07 d6 48 ab 8f 0e 07 d6 | 48 3b ac 88 c2 c3 dc 0e |..H.....|H;......|
|000005d0| 07 44 5c 22 88 0e 14 83 | 84 01 cf c5 89 89 1e 06 |.D\"....|........|
|000005e0| 1e 1d 1e 1e 89 1e 1f 0e | 15 57 ab db 0e 07 0e 1f |........|.W......|
|000005f0| 48 89 16 06 e0 3e ac 95 | c2 c3 c8 0e 06 21 ab 83 |H....>..|.....!..|
|00000600| e1 aa 81 e2 0e 06 0e 07 | 45 5c 22 88 aa a8 0e 06 |........|E\".....|
|00000610| e3 3d ab 99 0e 07 0e 1f | 54 48 89 16 1d e4 3e ac |.=......|TH....>.|
|00000620| 95 c2 c3 e5 0e 1d 0e 07 | 45 5c 22 88 aa 89 0e 06 |........|E\".....|
|00000630| e6 3d ab 83 e7 16 1e 0e | 1f 0e 06 e8 3d ab 83 e9 |.=......|....=...|
|00000640| aa 81 cf 5c 5c 89 16 1f | aa 20 0e 1e ab 8e 0e 1d |...\\...|. ......|
|00000650| ea 3e ac 88 c2 c3 eb 0e | 07 44 5c 22 88 2c 2a aa |.>......|.D\".,*.|
|00000660| 88 c2 c3 ec 0e 07 44 5c | 22 88 09 41 89 11 84 56 |......D\|"..A...V|
|00000670| 00 c5 2a 87 22 20 5b 6d | 65 6e 75 62 61 72 2d 70 |..*." [m|enubar-p|
|00000680| 20 6d 65 6e 75 20 73 69 | 67 6e 61 6c 20 65 72 72 | menu si|gnal err|
|00000690| 6f 72 20 22 6d 65 6e 75 | 20 6e 61 6d 65 20 28 66 |or "menu| name (f|
|000006a0| 69 72 73 74 20 65 6c 65 | 6d 65 6e 74 29 20 6d 75 |irst ele|ment) mu|
|000006b0| 73 74 20 62 65 20 61 20 | 73 74 72 69 6e 67 22 20 |st be a |string" |
|000006c0| 6e 69 6c 20 69 74 65 6d | 20 6d 65 6e 75 69 74 65 |nil item| menuite|
|000006d0| 6d 20 6b 65 79 77 6f 72 | 64 70 20 28 3a 63 6f 6e |m keywor|dp (:con|
|000006e0| 66 69 67 20 3a 69 6e 63 | 6c 75 64 65 64 20 3a 66 |fig :inc|luded :f|
|000006f0| 69 6c 74 65 72 29 20 22 | 6d 65 6e 75 20 6b 65 79 |ilter) "|menu key|
|00000700| 77 6f 72 64 20 6d 75 73 | 74 20 62 65 20 3a 63 6f |word mus|t be :co|
|00000710| 6e 66 69 67 2c 20 3a 69 | 6e 63 6c 75 64 65 64 2c |nfig, :i|ncluded,|
|00000720| 20 6f 72 20 3a 66 69 6c | 74 65 72 22 20 76 65 63 | or :fil|ter" vec|
|00000730| 74 6f 72 70 20 22 73 74 | 72 61 6e 67 65 20 6b 65 |torp "st|range ke|
|00000740| 79 77 6f 72 64 20 76 61 | 6c 75 65 22 20 73 74 72 |yword va|lue" str|
|00000750| 69 6e 67 2d 6d 61 74 63 | 68 20 22 5e 5c 5c 28 2d |ing-matc|h "^\\(-|
|00000760| 2b 5c 5c 7c 3d 2b 5c 5c | 29 3a 5c 5c 28 2e 2a 5c |+\\|=+\\|):\\(.*\|
|00000770| 5c 29 22 20 32 20 28 22 | 73 69 6e 67 6c 65 4c 69 |\)" 2 ("|singleLi|
|00000780| 6e 65 22 20 22 64 6f 75 | 62 6c 65 4c 69 6e 65 22 |ne" "dou|bleLine"|
|00000790| 20 22 73 69 6e 67 6c 65 | 44 61 73 68 65 64 4c 69 | "single|DashedLi|
|000007a0| 6e 65 22 20 22 64 6f 75 | 62 6c 65 44 61 73 68 65 |ne" "dou|bleDashe|
|000007b0| 64 4c 69 6e 65 22 20 22 | 6e 6f 4c 69 6e 65 22 20 |dLine" "|noLine" |
|000007c0| 22 73 68 61 64 6f 77 45 | 74 63 68 65 64 49 6e 22 |"shadowE|tchedIn"|
|000007d0| 20 22 73 68 61 64 6f 77 | 45 74 63 68 65 64 4f 75 | "shadow|EtchedOu|
|000007e0| 74 22 20 22 73 68 61 64 | 6f 77 45 74 63 68 65 64 |t" "shad|owEtched|
|000007f0| 49 6e 44 61 73 68 22 20 | 22 73 68 61 64 6f 77 45 |InDash" |"shadowE|
|00000800| 74 63 68 65 64 4f 75 74 | 44 61 73 68 22 20 22 73 |tchedOut|Dash" "s|
|00000810| 68 61 64 6f 77 44 6f 75 | 62 6c 65 45 74 63 68 65 |hadowDou|bleEtche|
|00000820| 64 49 6e 22 20 22 73 68 | 61 64 6f 77 44 6f 75 62 |dIn" "sh|adowDoub|
|00000830| 6c 65 45 74 63 68 65 64 | 4f 75 74 22 20 22 73 68 |leEtched|Out" "sh|
|00000840| 61 64 6f 77 44 6f 75 62 | 6c 65 45 74 63 68 65 64 |adowDoub|leEtched|
|00000850| 49 6e 44 61 73 68 22 20 | 22 73 68 61 64 6f 77 44 |InDash" |"shadowD|
|00000860| 6f 75 62 6c 65 45 74 63 | 68 65 64 4f 75 74 44 61 |oubleEtc|hedOutDa|
|00000870| 73 68 22 29 20 22 62 6f | 67 75 73 20 73 65 70 61 |sh") "bo|gus sepa|
|00000880| 72 61 74 6f 72 20 73 74 | 79 6c 65 20 69 6e 20 6d |rator st|yle in m|
|00000890| 65 6e 75 20 69 74 65 6d | 22 20 22 6e 69 6c 20 69 |enu item|" "nil i|
|000008a0| 73 20 6f 6e 6c 79 20 70 | 65 72 6d 69 74 74 65 64 |s only p|ermitted|
|000008b0| 20 69 6e 20 74 68 65 20 | 74 6f 70 20 6c 65 76 65 | in the |top leve|
|000008c0| 6c 20 6f 66 20 6d 65 6e | 75 62 61 72 73 22 20 63 |l of men|ubars" c|
|000008d0| 68 65 63 6b 2d 6d 65 6e | 75 2d 73 79 6e 74 61 78 |heck-men|u-syntax|
|000008e0| 20 70 6c 69 73 74 70 20 | 4c 20 33 20 22 62 75 74 | plistp |L 3 "but|
|000008f0| 74 6f 6e 20 64 65 73 63 | 72 69 70 74 6f 72 73 20 |ton desc|riptors |
|00000900| 6d 75 73 74 20 62 65 20 | 61 74 20 6c 65 61 73 74 |must be |at least|
|00000910| 20 33 20 6c 6f 6e 67 22 | 20 35 20 30 20 22 66 69 | 3 long"| 5 0 "fi|
|00000920| 72 73 74 20 65 6c 65 6d | 65 6e 74 20 6f 66 20 61 |rst elem|ent of a|
|00000930| 20 62 75 74 74 6f 6e 20 | 6d 75 73 74 20 62 65 20 | button |must be |
|00000940| 61 20 73 74 72 69 6e 67 | 20 28 74 68 65 20 6c 61 |a string| (the la|
|00000950| 62 65 6c 29 22 20 34 20 | 22 66 6f 75 72 74 68 20 |bel)" 4 |"fourth |
|00000960| 65 6c 65 6d 65 6e 74 20 | 6f 66 20 61 20 62 75 74 |element |of a but|
|00000970| 74 6f 6e 20 6d 75 73 74 | 20 62 65 20 61 20 73 74 |ton must| be a st|
|00000980| 72 69 6e 67 20 28 74 68 | 65 20 6c 61 62 65 6c 20 |ring (th|e label |
|00000990| 73 75 66 66 69 78 29 22 | 20 73 74 79 6c 65 20 73 |suffix)"| style s|
|000009a0| 65 6c 70 20 69 20 28 3a | 61 63 74 69 76 65 20 3a |elp i (:|active :|
|000009b0| 73 75 66 66 69 78 20 3a | 6b 65 79 73 20 3a 73 74 |suffix :|keys :st|
|000009c0| 79 6c 65 20 3a 66 75 6c | 6c 20 3a 69 6e 63 6c 75 |yle :ful|l :inclu|
|000009d0| 64 65 64 20 3a 73 65 6c | 65 63 74 65 64 29 20 22 |ded :sel|ected) "|
|000009e0| 75 6e 6b 6e 6f 77 6e 20 | 6d 65 6e 75 20 69 74 65 |unknown |menu ite|
|000009f0| 6d 20 6b 65 79 77 6f 72 | 64 22 20 22 6e 6f 74 20 |m keywor|d" "not |
|00000a00| 61 20 6b 65 79 77 6f 72 | 64 22 20 3a 73 74 79 6c |a keywor|d" :styl|
|00000a10| 65 20 28 6e 69 6c 20 74 | 6f 67 67 6c 65 20 72 61 |e (nil t|oggle ra|
|00000a20| 64 69 6f 20 62 75 74 74 | 6f 6e 20 74 65 78 74 29 |dio butt|on text)|
|00000a30| 20 22 75 6e 6b 6e 6f 77 | 6e 20 73 74 79 6c 65 22 | "unknow|n style"|
|00000a40| 20 3a 73 65 6c 65 63 74 | 65 64 20 74 20 3a 66 75 | :select|ed t :fu|
|00000a50| 6c 6c 20 31 20 28 74 6f | 67 67 6c 65 20 62 75 74 |ll 1 (to|ggle but|
|00000a60| 74 6f 6e 20 72 61 64 69 | 6f 29 20 22 3a 73 65 6c |ton radi|o) ":sel|
|00000a70| 65 63 74 65 64 20 6f 6e | 6c 79 20 6d 61 6b 65 73 |ected on|ly makes|
|00000a80| 20 73 65 6e 73 65 20 77 | 69 74 68 20 3a 73 74 79 | sense w|ith :sty|
|00000a90| 6c 65 20 74 6f 67 67 6c | 65 2c 20 72 61 64 69 6f |le toggl|e, radio|
|00000aa0| 2c 20 6f 72 20 62 75 74 | 74 6f 6e 22 20 22 75 6e |, or but|ton" "un|
|00000ab0| 72 65 63 6f 67 6e 69 73 | 65 64 20 6d 65 6e 75 20 |recognis|ed menu |
|00000ac0| 64 65 73 63 72 69 70 74 | 6f 72 22 5d 20 36 5d 29 |descript|or"] 6])|
|00000ad0| 0a 28 66 73 65 74 20 27 | 66 69 6e 64 2d 6d 65 6e |.(fset '|find-men|
|00000ae0| 75 2d 69 74 65 6d 20 23 | 5b 28 6d 65 6e 75 62 61 |u-item #|[(menuba|
|00000af0| 72 20 69 74 65 6d 2d 70 | 61 74 68 2d 6c 69 73 74 |r item-p|ath-list|
|00000b00| 20 26 6f 70 74 69 6f 6e | 61 6c 20 70 61 72 65 6e | &option|al paren|
|00000b10| 74 29 20 22 08 3c ac 87 | c1 c2 c3 08 44 5c 22 88 |t) ".<..|....D\".|
|00000b20| 0c ac 85 c5 c6 08 5c 22 | 10 0e 07 3a 3f 3f 85 a3 |......\"|...:??..|
|00000b30| 00 0e 07 c8 1e 09 1e 5c | 6e cb 0e 5c 6e 40 21 ab |.......\|n..\n@!.|
|00000b40| 88 0e 5c 6e 41 41 16 5c | 6e aa 71 0e 5c 6e ab bb |..\nAA.\|n.q.\n..|
|00000b50| 0e 5c 6e 40 ab ae 08 40 | cc 0e 5c 6e 40 21 ab 87 |.\n@...@|..\n@!..|
|00000b60| 0e 5c 6e 40 cd 48 aa 8f | 0e 5c 6e 40 3b ab 85 0e |.\n@.H..|.\n@;...|
|00000b70| 5c 6e 40 aa 84 0e 5c 6e | 40 40 97 9a ab 8b 0e 5c |\n@...\n|@@.....\|
|00000b80| 6e 40 16 09 c8 89 16 5c | 6e aa 4b 0e 5c 6e 41 89 |n@.....\|n.K.\nA.|
|00000b90| 16 5c 6e ac 45 08 41 ab | aa 0e 09 3a ab 8b ce 0e |.\n.E.A.|...:....|
|00000ba0| 09 41 08 41 0e 09 23 aa | 9e 0e 09 ab 8b c1 cf d0 |.A.A..#.|........|
|00000bb0| d1 21 0e 09 44 5c 22 aa | 8f c1 cf d0 d2 21 08 40 |.!..D\".|.....!.@|
|00000bc0| 44 5c 22 aa 84 0e 09 0c | 42 2a 87 22 20 5b 69 74 |D\".....|B*." [it|
|00000bd0| 65 6d 2d 70 61 74 68 2d | 6c 69 73 74 20 73 69 67 |em-path-|list sig|
|00000be0| 6e 61 6c 20 77 72 6f 6e | 67 2d 74 79 70 65 2d 61 |nal wron|g-type-a|
|00000bf0| 72 67 75 6d 65 6e 74 20 | 6c 69 73 74 70 20 70 61 |rgument |listp pa|
|00000c00| 72 65 6e 74 20 6d 61 70 | 63 61 72 20 64 6f 77 6e |rent map|car down|
|00000c10| 63 61 73 65 20 6d 65 6e | 75 62 61 72 20 6e 69 6c |case men|ubar nil|
|00000c20| 20 72 65 73 75 6c 74 20 | 72 65 73 74 20 6b 65 79 | result |rest key|
|00000c30| 77 6f 72 64 70 20 76 65 | 63 74 6f 72 70 20 30 20 |wordp ve|ctorp 0 |
|00000c40| 66 69 6e 64 2d 6d 65 6e | 75 2d 69 74 65 6d 20 65 |find-men|u-item e|
|00000c50| 72 72 6f 72 20 67 65 74 | 74 65 78 74 20 22 6e 6f |rror get|text "no|
|00000c60| 74 20 61 20 73 75 62 6d | 65 6e 75 22 20 22 6e 6f |t a subm|enu" "no|
|00000c70| 20 73 75 63 68 20 73 75 | 62 6d 65 6e 75 22 5d 20 | such su|bmenu"] |
|00000c80| 35 20 22 5c 0a 53 65 61 | 72 63 68 20 4d 45 4e 55 |5 "\.Sea|rch MENU|
|00000c90| 42 41 52 20 66 6f 72 20 | 69 74 65 6d 20 67 69 76 |BAR for |item giv|
|00000ca0| 65 6e 20 62 79 20 49 54 | 45 4d 2d 50 41 54 48 2d |en by IT|EM-PATH-|
|00000cb0| 4c 49 53 54 20 73 74 61 | 72 74 69 6e 67 20 66 72 |LIST sta|rting fr|
|00000cc0| 6f 6d 20 50 41 52 45 4e | 54 2e 0a 52 65 74 75 72 |om PAREN|T..Retur|
|00000cd0| 6e 73 20 28 49 54 45 4d | 20 2e 20 50 41 52 45 4e |ns (ITEM| . PAREN|
|00000ce0| 54 29 2c 20 77 68 65 72 | 65 20 50 41 52 45 4e 54 |T), wher|e PARENT|
|00000cf0| 20 69 73 20 74 68 65 20 | 69 6d 6d 65 64 69 61 74 | is the |immediat|
|00000d00| 65 20 70 61 72 65 6e 74 | 20 6f 66 0a 20 74 68 65 |e parent| of. the|
|00000d10| 20 69 74 65 6d 20 66 6f | 75 6e 64 2e 0a 49 66 20 | item fo|und..If |
|00000d20| 74 68 65 20 69 74 65 6d | 20 64 6f 65 73 20 6e 6f |the item| does no|
|00000d30| 74 20 65 78 69 73 74 2c | 20 74 68 65 20 63 61 72 |t exist,| the car|
|00000d40| 20 6f 66 20 74 68 65 20 | 72 65 74 75 72 6e 65 64 | of the |returned|
|00000d50| 20 76 61 6c 75 65 20 69 | 73 20 6e 69 6c 2e 0a 49 | value i|s nil..I|
|00000d60| 66 20 73 6f 6d 65 20 6d | 65 6e 75 20 69 6e 20 74 |f some m|enu in t|
|00000d70| 68 65 20 49 54 45 4d 2d | 50 41 54 48 2d 4c 49 53 |he ITEM-|PATH-LIS|
|00000d80| 54 20 64 6f 65 73 20 6e | 6f 74 20 65 78 69 73 74 |T does n|ot exist|
|00000d90| 2c 20 61 6e 20 65 72 72 | 6f 72 20 69 73 20 73 69 |, an err|or is si|
|00000da0| 67 6e 61 6c 6c 65 64 2e | 22 5d 29 0a 28 66 73 65 |gnalled.|"]).(fse|
|00000db0| 74 20 27 72 65 70 6c 61 | 63 65 2d 6c 69 73 74 2d |t 'repla|ce-list-|
|00000dc0| 65 6c 65 6d 65 6e 74 20 | 23 5b 28 6c 69 73 74 20 |element |#[(list |
|00000dd0| 6f 6c 64 20 6e 65 77 29 | 20 22 08 09 3e 89 1a ab |old new)| "..>...|
|00000de0| 86 5c 6e 0b a0 88 aa 89 | c4 c5 c6 09 08 0b 46 5c |.\n.....|......F\|
|00000df0| 22 88 09 29 87 22 20 5b | 6f 6c 64 20 6c 69 73 74 |"..)." [|old list|
|00000e00| 20 70 6c 61 63 65 20 6e | 65 77 20 73 69 67 6e 61 | place n|ew signa|
|00000e10| 6c 20 65 72 72 6f 72 20 | 22 63 61 6e 6e 6f 74 20 |l error |"cannot |
|00000e20| 72 65 70 6c 61 63 65 20 | 6c 69 73 74 20 65 6c 65 |replace |list ele|
|00000e30| 6d 65 6e 74 22 5d 20 37 | 20 22 5c 0a 44 65 73 74 |ment"] 7| "\.Dest|
|00000e40| 72 75 63 74 69 76 65 6c | 79 20 72 65 70 6c 61 63 |ructivel|y replac|
|00000e50| 65 20 4f 4c 44 20 65 6c | 65 6d 65 6e 74 20 77 69 |e OLD el|ement wi|
|00000e60| 74 68 20 4e 45 57 20 65 | 6c 65 6d 65 6e 74 20 69 |th NEW e|lement i|
|00000e70| 6e 20 4c 49 53 54 2e 0a | 52 65 74 75 72 6e 73 20 |n LIST..|Returns |
|00000e80| 74 68 65 20 6e 65 77 20 | 6c 69 73 74 2e 22 5d 29 |the new |list."])|
|00000e90| 0a 28 66 73 65 74 20 27 | 61 64 64 2d 6d 65 6e 75 |.(fset '|add-menu|
|00000ea0| 2d 69 74 65 6d 2d 31 20 | 23 5b 28 6c 65 61 66 2d |-item-1 |#[(leaf-|
|00000eb0| 70 20 6d 65 6e 75 2d 70 | 61 74 68 20 6e 65 77 2d |p menu-p|ath new-|
|00000ec0| 69 74 65 6d 20 62 65 66 | 6f 72 65 29 20 22 08 ab |item bef|ore) "..|
|00000ed0| 83 08 97 10 c1 5c 6e 21 | ab 85 5c 6e c3 48 aa 82 |.....\n!|..\n.H..|
|00000ee0| 5c 6e 40 1c 0d 1e 06 c7 | c8 c9 8f 89 1e 5c 6e 3c |\n@.....|.....\n<|
|00000ef0| ac 8b cb cc cd ce 21 0e | 0f 44 5c 22 aa 93 0e 5c |......!.|.D\"...\|
|00000f00| 6e ab 89 d0 0e 5c 6e 41 | 0c 43 5c 22 aa 86 d0 0e |n....\nA|.C\"....|
|00000f10| 06 0c 43 5c 22 1e 11 0e | 06 ac 84 cc d2 21 88 0e |..C\"...|.....!..|
|00000f20| 5c 6e ac e0 0e 0f 0e 06 | 1e 13 89 1e 14 ab d4 0e |\n......|........|
|00000f30| 13 0e 06 3d ab 8b d0 0e | 13 0e 14 40 43 5c 22 40 |...=....|...@C\"@|
|00000f40| aa 8a d0 0e 13 41 0e 14 | 40 43 5c 22 40 89 16 5c |.....A..|@C\"@..\|
|00000f50| 6e ac a7 0e 13 89 1e 15 | 41 ab 8e 0e 15 41 40 ab |n.......|A....A@.|
|00000f60| 88 0e 15 41 89 16 15 aa | 6f 0e 15 0e 14 40 43 89 |...A....|o....@C.|
|00000f70| 16 5c 6e 43 0e 15 41 a4 | a1 88 29 0e 5c 6e 16 13 |.\nC..A.|..).\n..|
|00000f80| 0e 14 41 89 16 14 ac 2c | 2a 0e 11 ab 9e 0e 11 40 |..A....,|*......@|
|00000f90| ab 99 0e 5c 6e ab 8b d6 | 0e 5c 6e 0e 11 40 5c 6e |...\n...|.\n..@\n|
|00000fa0| 23 88 aa ec d6 0d 0e 11 | 40 5c 6e 23 15 aa e2 0e |#.......|@\n#....|
|00000fb0| 5c 6e ac 83 0d 16 5c 6e | 08 ab 89 d0 0e 5c 6e 41 |\n....\n|.....\nA|
|00000fc0| 08 43 5c 22 40 10 0e 5c | 6e c7 1e 17 1e 14 0e 14 |.C\"@..\|n.......|
|00000fd0| ab a1 08 0e 14 41 40 3d | ab 91 0e 14 5c 6e 0e 14 |.....A@=|....\n..|
|00000fe0| 41 42 a1 88 c7 16 14 d8 | 16 17 aa 63 0e 14 41 89 |AB......|...c..A.|
|00000ff0| 16 14 ac 5f 0e 17 ac 9e | 0e 5c 6e 0e 06 3d ab 91 |..._....|.\n..=..|
|00001000| 08 0e 5c 6e 40 3d ab 8a | 5c 6e 0e 5c 6e 42 89 16 |..\n@=..|\n.\nB..|
|00001010| 5c 6e 15 aa 86 0e 5c 6e | 5c 6e 43 a4 88 2a d9 20 |\n....\n|\nC..*. |
|00001020| 88 5c 6e 2c 87 22 20 5b | 62 65 66 6f 72 65 20 76 |.\n,." [|before v|
|00001030| 65 63 74 6f 72 70 20 6e | 65 77 2d 69 74 65 6d 20 |ectorp n|ew-item |
|00001040| 30 20 69 74 65 6d 2d 6e | 61 6d 65 20 63 75 72 72 |0 item-n|ame curr|
|00001050| 65 6e 74 2d 6d 65 6e 75 | 62 61 72 20 6d 65 6e 75 |ent-menu|bar menu|
|00001060| 62 61 72 20 6e 69 6c 20 | 28 62 79 74 65 2d 63 6f |bar nil |(byte-co|
|00001070| 64 65 20 22 c0 09 5c 6e | 5c 22 40 87 22 20 5b 66 |de "..\n|\"@." [f|
|00001080| 69 6e 64 2d 6d 65 6e 75 | 2d 69 74 65 6d 20 6d 65 |ind-menu|-item me|
|00001090| 6e 75 62 61 72 20 6d 65 | 6e 75 2d 70 61 74 68 5d |nubar me|nu-path]|
|000010a0| 20 33 29 20 28 28 65 72 | 72 6f 72 29 29 20 6d 65 | 3) ((er|ror)) me|
|000010b0| 6e 75 20 73 69 67 6e 61 | 6c 20 65 72 72 6f 72 20 |nu signa|l error |
|000010c0| 67 65 74 74 65 78 74 20 | 22 6e 6f 74 20 61 20 73 |gettext |"not a s|
|000010d0| 75 62 6d 65 6e 75 22 20 | 6d 65 6e 75 2d 70 61 74 |ubmenu" |menu-pat|
|000010e0| 68 20 66 69 6e 64 2d 6d | 65 6e 75 2d 69 74 65 6d |h find-m|enu-item|
|000010f0| 20 69 74 65 6d 2d 66 6f | 75 6e 64 20 22 60 63 75 | item-fo|und "`cu|
|00001100| 72 72 65 6e 74 2d 6d 65 | 6e 75 62 61 72 27 20 69 |rrent-me|nubar' i|
|00001110| 73 20 6e 69 6c 3a 20 63 | 61 6e 27 74 20 61 64 64 |s nil: c|an't add|
|00001120| 20 6d 65 6e 75 73 20 74 | 6f 20 69 74 2e 22 20 73 | menus t|o it." s|
|00001130| 6f 2d 66 61 72 20 72 65 | 73 74 20 72 65 73 74 32 |o-far re|st rest2|
|00001140| 20 72 65 70 6c 61 63 65 | 2d 6c 69 73 74 2d 65 6c | replace|-list-el|
|00001150| 65 6d 65 6e 74 20 61 64 | 64 65 64 2d 62 65 66 6f |ement ad|ded-befo|
|00001160| 72 65 20 74 20 73 65 74 | 2d 6d 65 6e 75 62 61 72 |re t set|-menubar|
|00001170| 2d 64 69 72 74 79 2d 66 | 6c 61 67 5d 20 35 5d 29 |-dirty-f|lag] 5])|
|00001180| 0a 28 66 73 65 74 20 27 | 61 64 64 2d 6d 65 6e 75 |.(fset '|add-menu|
|00001190| 2d 62 75 74 74 6f 6e 20 | 23 5b 28 6d 65 6e 75 2d |-button |#[(menu-|
|000011a0| 70 61 74 68 20 6d 65 6e | 75 2d 6c 65 61 66 20 26 |path men|u-leaf &|
|000011b0| 6f 70 74 69 6f 6e 61 6c | 20 62 65 66 6f 72 65 29 |optional| before)|
|000011c0| 20 22 c0 c1 5c 6e 0b 0c | 24 87 22 20 5b 61 64 64 | "..\n..|$." [add|
|000011d0| 2d 6d 65 6e 75 2d 69 74 | 65 6d 2d 31 20 74 20 6d |-menu-it|em-1 t m|
|000011e0| 65 6e 75 2d 70 61 74 68 | 20 6d 65 6e 75 2d 6c 65 |enu-path| menu-le|
|000011f0| 61 66 20 62 65 66 6f 72 | 65 5d 20 35 20 22 5c 0a |af befor|e] 5 "\.|
|00001200| 41 64 64 20 61 20 6d 65 | 6e 75 20 69 74 65 6d 20 |Add a me|nu item |
|00001210| 74 6f 20 73 6f 6d 65 20 | 6d 65 6e 75 2c 20 63 72 |to some |menu, cr|
|00001220| 65 61 74 69 6e 67 20 74 | 68 65 20 6d 65 6e 75 20 |eating t|he menu |
|00001230| 66 69 72 73 74 20 69 66 | 20 6e 65 63 65 73 73 61 |first if| necessa|
|00001240| 72 79 2e 0a 49 66 20 74 | 68 65 20 6e 61 6d 65 64 |ry..If t|he named|
|00001250| 20 69 74 65 6d 20 65 78 | 69 73 74 73 20 61 6c 72 | item ex|ists alr|
|00001260| 65 61 64 79 2c 20 69 74 | 20 69 73 20 63 68 61 6e |eady, it| is chan|
|00001270| 67 65 64 2e 0a 4d 45 4e | 55 2d 50 41 54 48 20 69 |ged..MEN|U-PATH i|
|00001280| 64 65 6e 74 69 66 69 65 | 73 20 74 68 65 20 6d 65 |dentifie|s the me|
|00001290| 6e 75 20 75 6e 64 65 72 | 20 77 68 69 63 68 20 74 |nu under| which t|
|000012a0| 68 65 20 6e 65 77 20 6d | 65 6e 75 20 69 74 65 6d |he new m|enu item|
|000012b0| 20 73 68 6f 75 6c 64 20 | 62 65 20 69 6e 73 65 72 | should |be inser|
|000012c0| 74 65 64 2e 0a 20 49 74 | 20 69 73 20 61 20 6c 69 |ted.. It| is a li|
|000012d0| 73 74 20 6f 66 20 73 74 | 72 69 6e 67 73 3b 20 66 |st of st|rings; f|
|000012e0| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 28 5c 22 46 |or examp|le, (\"F|
|000012f0| 69 6c 65 5c 22 29 20 6e | 61 6d 65 73 20 74 68 65 |ile\") n|ames the|
|00001300| 20 74 6f 70 2d 6c 65 76 | 65 6c 20 5c 22 46 69 6c | top-lev|el \"Fil|
|00001310| 65 5c 22 0a 20 6d 65 6e | 75 2e 20 20 28 5c 22 46 |e\". men|u. (\"F|
|00001320| 69 6c 65 5c 22 20 5c 22 | 46 6f 6f 5c 22 29 20 6e |ile\" \"|Foo\") n|
|00001330| 61 6d 65 73 20 61 20 68 | 79 70 6f 74 68 65 74 69 |ames a h|ypotheti|
|00001340| 63 61 6c 20 73 75 62 6d | 65 6e 75 20 6f 66 20 5c |cal subm|enu of \|
|00001350| 22 46 69 6c 65 5c 22 2e | 0a 4d 45 4e 55 2d 4c 45 |"File\".|.MENU-LE|
|00001360| 41 46 20 69 73 20 61 20 | 6d 65 6e 75 62 61 72 20 |AF is a |menubar |
|00001370| 6c 65 61 66 20 6e 6f 64 | 65 2e 20 20 53 65 65 20 |leaf nod|e. See |
|00001380| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |the docu|mentatio|
|00001390| 6e 20 6f 66 20 60 63 75 | 72 72 65 6e 74 2d 6d 65 |n of `cu|rrent-me|
|000013a0| 6e 75 62 61 72 27 2e 0a | 42 45 46 4f 52 45 2c 20 |nubar'..|BEFORE, |
|000013b0| 69 66 20 70 72 6f 76 69 | 64 65 64 2c 20 69 73 20 |if provi|ded, is |
|000013c0| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 61 20 6d 65 |the name| of a me|
|000013d0| 6e 75 20 69 74 65 6d 20 | 62 65 66 6f 72 65 20 77 |nu item |before w|
|000013e0| 68 69 63 68 20 74 68 69 | 73 20 69 74 65 6d 20 73 |hich thi|s item s|
|000013f0| 68 6f 75 6c 64 0a 20 62 | 65 20 61 64 64 65 64 2c |hould. b|e added,|
|00001400| 20 69 66 20 74 68 69 73 | 20 69 74 65 6d 20 69 73 | if this| item is|
|00001410| 20 6e 6f 74 20 6f 6e 20 | 74 68 65 20 6d 65 6e 75 | not on |the menu|
|00001420| 20 61 6c 72 65 61 64 79 | 2e 20 20 49 66 20 74 68 | already|. If th|
|00001430| 65 20 69 74 65 6d 20 69 | 73 20 61 6c 72 65 61 64 |e item i|s alread|
|00001440| 79 0a 20 70 72 65 73 65 | 6e 74 2c 20 69 74 20 77 |y. prese|nt, it w|
|00001450| 69 6c 6c 20 6e 6f 74 20 | 62 65 20 6d 6f 76 65 64 |ill not |be moved|
|00001460| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 61 64 64 2d |."]).(fs|et 'add-|
|00001470| 73 75 62 6d 65 6e 75 20 | 23 5b 28 6d 65 6e 75 2d |submenu |#[(menu-|
|00001480| 70 61 74 68 20 73 75 62 | 6d 65 6e 75 20 26 6f 70 |path sub|menu &op|
|00001490| 74 69 6f 6e 61 6c 20 62 | 65 66 6f 72 65 29 20 22 |tional b|efore) "|
|000014a0| c0 09 c2 5c 22 88 c3 c2 | 0c 09 0d 24 87 22 20 5b |...\"...|...$." [|
|000014b0| 63 68 65 63 6b 2d 6d 65 | 6e 75 2d 73 79 6e 74 61 |check-me|nu-synta|
|000014c0| 78 20 73 75 62 6d 65 6e | 75 20 6e 69 6c 20 61 64 |x submen|u nil ad|
|000014d0| 64 2d 6d 65 6e 75 2d 69 | 74 65 6d 2d 31 20 6d 65 |d-menu-i|tem-1 me|
|000014e0| 6e 75 2d 70 61 74 68 20 | 62 65 66 6f 72 65 5d 20 |nu-path |before] |
|000014f0| 35 20 22 5c 0a 41 64 64 | 20 61 20 6d 65 6e 75 20 |5 "\.Add| a menu |
|00001500| 74 6f 20 74 68 65 20 6d | 65 6e 75 62 61 72 20 6f |to the m|enubar o|
|00001510| 72 20 6f 6e 65 20 6f 66 | 20 69 74 73 20 73 75 62 |r one of| its sub|
|00001520| 6d 65 6e 75 73 2e 0a 49 | 66 20 74 68 65 20 6e 61 |menus..I|f the na|
|00001530| 6d 65 64 20 6d 65 6e 75 | 20 65 78 69 73 74 73 20 |med menu| exists |
|00001540| 61 6c 72 65 61 64 79 2c | 20 69 74 20 69 73 20 63 |already,| it is c|
|00001550| 68 61 6e 67 65 64 2e 0a | 4d 45 4e 55 2d 50 41 54 |hanged..|MENU-PAT|
|00001560| 48 20 69 64 65 6e 74 69 | 66 69 65 73 20 74 68 65 |H identi|fies the|
|00001570| 20 6d 65 6e 75 20 75 6e | 64 65 72 20 77 68 69 63 | menu un|der whic|
|00001580| 68 20 74 68 65 20 6e 65 | 77 20 6d 65 6e 75 20 73 |h the ne|w menu s|
|00001590| 68 6f 75 6c 64 20 62 65 | 20 69 6e 73 65 72 74 65 |hould be| inserte|
|000015a0| 64 2e 0a 20 49 74 20 69 | 73 20 61 20 6c 69 73 74 |d.. It i|s a list|
|000015b0| 20 6f 66 20 73 74 72 69 | 6e 67 73 3b 20 66 6f 72 | of stri|ngs; for|
|000015c0| 20 65 78 61 6d 70 6c 65 | 2c 20 28 5c 22 46 69 6c | example|, (\"Fil|
|000015d0| 65 5c 22 29 20 6e 61 6d | 65 73 20 74 68 65 20 74 |e\") nam|es the t|
|000015e0| 6f 70 2d 6c 65 76 65 6c | 20 5c 22 46 69 6c 65 5c |op-level| \"File\|
|000015f0| 22 0a 20 6d 65 6e 75 2e | 20 20 28 5c 22 46 69 6c |". menu.| (\"Fil|
|00001600| 65 5c 22 20 5c 22 46 6f | 6f 5c 22 29 20 6e 61 6d |e\" \"Fo|o\") nam|
|00001610| 65 73 20 61 20 68 79 70 | 6f 74 68 65 74 69 63 61 |es a hyp|othetica|
|00001620| 6c 20 73 75 62 6d 65 6e | 75 20 6f 66 20 5c 22 46 |l submen|u of \"F|
|00001630| 69 6c 65 5c 22 2e 0a 20 | 49 66 20 4d 45 4e 55 2d |ile\".. |If MENU-|
|00001640| 50 41 54 48 20 69 73 20 | 6e 69 6c 2c 20 74 68 65 |PATH is |nil, the|
|00001650| 6e 20 74 68 65 20 6d 65 | 6e 75 20 77 69 6c 6c 20 |n the me|nu will |
|00001660| 62 65 20 61 64 64 65 64 | 20 74 6f 20 74 68 65 20 |be added| to the |
|00001670| 6d 65 6e 75 62 61 72 20 | 69 74 73 65 6c 66 2e 0a |menubar |itself..|
|00001680| 53 55 42 4d 45 4e 55 20 | 69 73 20 74 68 65 20 6e |SUBMENU |is the n|
|00001690| 65 77 20 6d 65 6e 75 20 | 74 6f 20 61 64 64 2e 0a |ew menu |to add..|
|000016a0| 20 53 65 65 20 74 68 65 | 20 64 6f 63 75 6d 65 6e | See the| documen|
|000016b0| 74 61 74 69 6f 6e 20 6f | 66 20 60 63 75 72 72 65 |tation o|f `curre|
|000016c0| 6e 74 2d 6d 65 6e 75 62 | 61 72 27 20 66 6f 72 20 |nt-menub|ar' for |
|000016d0| 74 68 65 20 73 79 6e 74 | 61 78 2e 0a 42 45 46 4f |the synt|ax..BEFO|
|000016e0| 52 45 2c 20 69 66 20 70 | 72 6f 76 69 64 65 64 2c |RE, if p|rovided,|
|000016f0| 20 69 73 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 | is the |name of |
|00001700| 61 20 6d 65 6e 75 20 62 | 65 66 6f 72 65 20 77 68 |a menu b|efore wh|
|00001710| 69 63 68 20 74 68 69 73 | 20 6d 65 6e 75 20 73 68 |ich this| menu sh|
|00001720| 6f 75 6c 64 0a 20 62 65 | 20 61 64 64 65 64 2c 20 |ould. be| added, |
|00001730| 69 66 20 74 68 69 73 20 | 6d 65 6e 75 20 69 73 20 |if this |menu is |
|00001740| 6e 6f 74 20 6f 6e 20 69 | 74 73 20 70 61 72 65 6e |not on i|ts paren|
|00001750| 74 20 61 6c 72 65 61 64 | 79 2e 20 20 49 66 20 74 |t alread|y. If t|
|00001760| 68 65 20 6d 65 6e 75 20 | 69 73 20 61 6c 72 65 61 |he menu |is alrea|
|00001770| 64 79 0a 20 70 72 65 73 | 65 6e 74 2c 20 69 74 20 |dy. pres|ent, it |
|00001780| 77 69 6c 6c 20 6e 6f 74 | 20 62 65 20 6d 6f 76 65 |will not| be move|
|00001790| 64 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 70 75 72 |d."]).(f|set 'pur|
|000017a0| 65 63 6f 70 79 2d 6d 65 | 6e 75 62 61 72 20 23 5b |ecopy-me|nubar #[|
|000017b0| 28 78 29 20 22 c0 09 21 | ab 9c 09 47 89 1a c3 56 |(x) "..!|...G...V|
|000017c0| ab 91 09 5c 6e 53 c4 09 | 5c 6e 53 48 21 49 88 5c |...\nS..|\nSH!I.\|
|000017d0| 6e 53 89 12 aa 6b 29 09 | 87 09 3a ab 95 09 89 1d |nS...k).|..:.....|
|000017e0| ab 8d 0d c6 0d 40 21 a0 | 88 0d 41 89 15 ac 73 29 |.....@!.|..A...s)|
|000017f0| 09 87 c4 09 21 87 22 20 | 5b 76 65 63 74 6f 72 70 |....!." |[vectorp|
|00001800| 20 78 20 69 20 30 20 70 | 75 72 65 63 6f 70 79 20 | x i 0 p|urecopy |
|00001810| 72 65 73 74 20 70 75 72 | 65 63 6f 70 79 2d 6d 65 |rest pur|ecopy-me|
|00001820| 6e 75 62 61 72 5d 20 36 | 5d 29 0a 28 66 73 65 74 |nubar] 6|]).(fset|
|00001830| 20 27 64 65 6c 65 74 65 | 2d 6d 65 6e 75 2d 69 74 | 'delete|-menu-it|
|00001840| 65 6d 20 23 5b 28 70 61 | 74 68 29 20 22 c0 c1 c2 |em #[(pa|th) "...|
|00001850| 8f 89 1b 40 1c 0b 41 ae | 81 0d 1e 06 0c 3f 3f ad |...@..A.|.....??.|
|00001860| 98 0e 06 0d 3d ab 88 c7 | 0c 0e 06 5c 22 15 aa 86 |....=...|...\"...|
|00001870| c7 0c 0e 06 5c 22 88 c8 | 20 88 0c 2b 87 22 20 5b |....\"..| ..+." [|
|00001880| 6e 69 6c 20 28 66 69 6e | 64 2d 6d 65 6e 75 2d 69 |nil (fin|d-menu-i|
|00001890| 74 65 6d 20 63 75 72 72 | 65 6e 74 2d 6d 65 6e 75 |tem curr|ent-menu|
|000018a0| 62 61 72 20 70 61 74 68 | 29 20 28 28 65 72 72 6f |bar path|) ((erro|
|000018b0| 72 29 29 20 70 61 69 72 | 20 69 74 65 6d 20 63 75 |r)) pair| item cu|
|000018c0| 72 72 65 6e 74 2d 6d 65 | 6e 75 62 61 72 20 70 61 |rrent-me|nubar pa|
|000018d0| 72 65 6e 74 20 64 65 6c | 71 20 73 65 74 2d 6d 65 |rent del|q set-me|
|000018e0| 6e 75 62 61 72 2d 64 69 | 72 74 79 2d 66 6c 61 67 |nubar-di|rty-flag|
|000018f0| 5d 20 34 20 22 5c 0a 52 | 65 6d 6f 76 65 20 74 68 |] 4 "\.R|emove th|
|00001900| 65 20 6e 61 6d 65 64 20 | 6d 65 6e 75 20 69 74 65 |e named |menu ite|
|00001910| 6d 20 66 72 6f 6d 20 74 | 68 65 20 6d 65 6e 75 20 |m from t|he menu |
|00001920| 68 69 65 72 61 72 63 68 | 79 2e 0a 50 41 54 48 20 |hierarch|y..PATH |
|00001930| 69 73 20 61 20 6c 69 73 | 74 20 6f 66 20 73 74 72 |is a lis|t of str|
|00001940| 69 6e 67 73 20 77 68 69 | 63 68 20 69 64 65 6e 74 |ings whi|ch ident|
|00001950| 69 66 79 20 74 68 65 20 | 70 6f 73 69 74 69 6f 6e |ify the |position|
|00001960| 20 6f 66 20 74 68 65 20 | 6d 65 6e 75 20 69 74 65 | of the |menu ite|
|00001970| 6d 20 69 6e 20 0a 74 68 | 65 20 6d 65 6e 75 20 68 |m in .th|e menu h|
|00001980| 69 65 72 61 72 63 68 79 | 2e 20 20 54 68 65 20 64 |ierarchy|. The d|
|00001990| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 |ocumenta|tion of |
|000019a0| 60 61 64 64 2d 73 75 62 | 6d 65 6e 75 27 20 64 65 |`add-sub|menu' de|
|000019b0| 73 63 72 69 62 65 73 20 | 6d 65 6e 75 2d 70 61 74 |scribes |menu-pat|
|000019c0| 68 73 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 72 65 |hs."]).(|fset 're|
|000019d0| 6c 61 62 65 6c 2d 6d 65 | 6e 75 2d 69 74 65 6d 20 |label-me|nu-item |
|000019e0| 23 5b 28 70 61 74 68 20 | 6e 65 77 2d 6e 61 6d 65 |#[(path |new-name|
|000019f0| 29 20 22 08 3b ac 87 c1 | c2 c3 08 44 5c 22 10 0c |) ".;...|...D\"..|
|00001a00| 1d c6 0d 0e 07 5c 22 89 | 1e 08 40 1e 09 0e 08 41 |.....\".|..@....A|
|00001a10| 1e 5c 6e 0e 09 ac 93 c1 | cb 0e 5c 6e ab 85 cc cd |.\n.....|..\n....|
|00001a20| 21 aa 83 cc ce 21 0e 07 | 44 5c 22 88 0e 09 3a ab |!....!..|D\"...:.|
|00001a30| 8d 0e 09 40 3b ab 87 0e | 09 08 a0 88 aa 86 0e 09 |...@;...|........|
|00001a40| cf 08 49 88 d0 20 88 0e | 09 2c 87 22 20 5b 6e 65 |..I.. ..|.,." [ne|
|00001a50| 77 2d 6e 61 6d 65 20 73 | 69 67 6e 61 6c 20 77 72 |w-name s|ignal wr|
|00001a60| 6f 6e 67 2d 74 79 70 65 | 2d 61 72 67 75 6d 65 6e |ong-type|-argumen|
|00001a70| 74 20 73 74 72 69 6e 67 | 70 20 63 75 72 72 65 6e |t string|p curren|
|00001a80| 74 2d 6d 65 6e 75 62 61 | 72 20 6d 65 6e 75 62 61 |t-menuba|r menuba|
|00001a90| 72 20 66 69 6e 64 2d 6d | 65 6e 75 2d 69 74 65 6d |r find-m|enu-item|
|00001aa0| 20 70 61 74 68 20 70 61 | 69 72 20 69 74 65 6d 20 | path pa|ir item |
|00001ab0| 6d 65 6e 75 20 65 72 72 | 6f 72 20 67 65 74 74 65 |menu err|or gette|
|00001ac0| 78 74 20 22 4e 6f 20 73 | 75 63 68 20 6d 65 6e 75 |xt "No s|uch menu|
|00001ad0| 20 69 74 65 6d 22 20 22 | 4e 6f 20 73 75 63 68 20 | item" "|No such |
|00001ae0| 6d 65 6e 75 22 20 30 20 | 73 65 74 2d 6d 65 6e 75 |menu" 0 |set-menu|
|00001af0| 62 61 72 2d 64 69 72 74 | 79 2d 66 6c 61 67 5d 20 |bar-dirt|y-flag] |
|00001b00| 35 20 22 5c 0a 43 68 61 | 6e 67 65 20 74 68 65 20 |5 "\.Cha|nge the |
|00001b10| 73 74 72 69 6e 67 20 6f | 66 20 74 68 65 20 73 70 |string o|f the sp|
|00001b20| 65 63 69 66 69 65 64 20 | 6d 65 6e 75 20 69 74 65 |ecified |menu ite|
|00001b30| 6d 2e 0a 50 41 54 48 20 | 69 73 20 61 20 6c 69 73 |m..PATH |is a lis|
|00001b40| 74 20 6f 66 20 73 74 72 | 69 6e 67 73 20 77 68 69 |t of str|ings whi|
|00001b50| 63 68 20 69 64 65 6e 74 | 69 66 79 20 74 68 65 20 |ch ident|ify the |
|00001b60| 70 6f 73 69 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |position| of the |
|00001b70| 6d 65 6e 75 20 69 74 65 | 6d 20 69 6e 20 0a 74 68 |menu ite|m in .th|
|00001b80| 65 20 6d 65 6e 75 20 68 | 69 65 72 61 72 63 68 79 |e menu h|ierarchy|
|00001b90| 2e 20 20 28 5c 22 46 69 | 6c 65 5c 22 20 5c 22 53 |. (\"Fi|le\" \"S|
|00001ba0| 61 76 65 5c 22 29 20 6d | 65 61 6e 73 20 74 68 65 |ave\") m|eans the|
|00001bb0| 20 6d 65 6e 75 20 69 74 | 65 6d 20 63 61 6c 6c 65 | menu it|em calle|
|00001bc0| 64 20 5c 22 53 61 76 65 | 5c 22 0a 75 6e 64 65 72 |d \"Save|\".under|
|00001bd0| 20 74 68 65 20 74 6f 70 | 6c 65 76 65 6c 20 5c 22 | the top|level \"|
|00001be0| 46 69 6c 65 5c 22 20 6d | 65 6e 75 2e 20 20 28 5c |File\" m|enu. (\|
|00001bf0| 22 4d 65 6e 75 5c 22 20 | 5c 22 46 6f 6f 5c 22 20 |"Menu\" |\"Foo\" |
|00001c00| 5c 22 49 74 65 6d 5c 22 | 29 20 6d 65 61 6e 73 20 |\"Item\"|) means |
|00001c10| 74 68 65 20 0a 6d 65 6e | 75 20 69 74 65 6d 20 63 |the .men|u item c|
|00001c20| 61 6c 6c 65 64 20 5c 22 | 49 74 65 6d 5c 22 20 75 |alled \"|Item\" u|
|00001c30| 6e 64 65 72 20 74 68 65 | 20 5c 22 46 6f 6f 5c 22 |nder the| \"Foo\"|
|00001c40| 20 73 75 62 6d 65 6e 75 | 20 6f 66 20 5c 22 4d 65 | submenu| of \"Me|
|00001c50| 6e 75 5c 22 2e 0a 4e 45 | 57 2d 4e 41 4d 45 20 69 |nu\"..NE|W-NAME i|
|00001c60| 73 20 74 68 65 20 73 74 | 72 69 6e 67 20 74 68 61 |s the st|ring tha|
|00001c70| 74 20 74 68 65 20 6d 65 | 6e 75 20 69 74 65 6d 20 |t the me|nu item |
|00001c80| 77 69 6c 6c 20 62 65 20 | 70 72 69 6e 74 65 64 20 |will be |printed |
|00001c90| 61 73 20 66 72 6f 6d 20 | 6e 6f 77 20 6f 6e 2e 22 |as from |now on."|
|00001ca0| 5d 29 0a 28 66 73 65 74 | 20 27 65 6e 61 62 6c 65 |]).(fset| 'enable|
|00001cb0| 2d 6d 65 6e 75 2d 69 74 | 65 6d 2d 31 20 23 5b 28 |-menu-it|em-1 #[(|
|00001cc0| 70 61 74 68 20 74 6f 67 | 67 6c 65 2d 70 20 6f 6e |path tog|gle-p on|
|00001cd0| 2d 70 29 20 22 c0 89 19 | 1a c3 0c 21 ab 8a 0c 47 |-p) "...|...!...G|
|00001ce0| c5 56 ab 84 0c 11 aa ac | 0e 06 1e 07 c8 0e 07 0c |.V......|........|
|00001cf0| 5c 22 89 1e 09 40 11 0e | 09 41 12 09 ac 8d ca cb |\"...@..|.A......|
|00001d00| 5c 6e ab 83 cc aa 81 cd | 0c 44 5c 22 88 09 3a ab |\n......|.D\"..:.|
|00001d10| 85 cb ce 0c 5c 22 88 2a | 09 47 cf 56 ac 92 09 c5 |....\".*|.G.V....|
|00001d20| 48 39 83 cc 00 d0 09 c5 | 48 21 d1 48 d2 55 ab f5 |H9......|H!.H.U..|
|00001d30| c5 0e 13 ab 83 d4 aa 81 | d5 c0 1e 16 1e 17 89 1e |........|........|
|00001d40| 18 09 47 57 ab 9d 09 0e | 18 48 0e 17 3d ab 8b 09 |..GW....|.H..=...|
|00001d50| 0e 18 54 0e 19 49 88 da | 16 16 0e 18 c5 5c 5c 89 |..T..I..|.....\\.|
|00001d60| 16 18 aa 5e 0e 16 ac bb | 0e 13 ab 89 ca cb db 09 |...^....|........|
|00001d70| 44 5c 22 88 aa ae 09 5c | 6e 3e dc 09 0e 17 0e 19 |D\"....\|n>......|
|00001d80| 44 5c 22 1e 1d 89 1e 1e | ab 8a 0e 1e 0e 1d 89 11 |D\".....|........|
|00001d90| a0 88 aa 91 5c 6e ab 87 | cb df 09 5c 22 88 aa 87 |....\n..|...\"...|
|00001da0| cb e0 0e 17 09 23 88 2a | 2b aa 93 0e 13 ab 89 ca |.....#.*|+.......|
|00001db0| cb db 09 44 5c 22 88 aa | 86 09 c5 0e 19 49 88 e1 |...D\"..|.....I..|
|00001dc0| 20 88 09 2a 87 22 20 5b | 6e 69 6c 20 69 74 65 6d | ..*." [|nil item|
|00001dd0| 20 6d 65 6e 75 20 76 65 | 63 74 6f 72 70 20 70 61 | menu ve|ctorp pa|
|00001de0| 74 68 20 32 20 63 75 72 | 72 65 6e 74 2d 6d 65 6e |th 2 cur|rent-men|
|00001df0| 75 62 61 72 20 6d 65 6e | 75 62 61 72 20 66 69 6e |ubar men|ubar fin|
|00001e00| 64 2d 6d 65 6e 75 2d 69 | 74 65 6d 20 70 61 69 72 |d-menu-i|tem pair|
|00001e10| 20 73 69 67 6e 61 6c 20 | 65 72 72 6f 72 20 22 4e | signal |error "N|
|00001e20| 6f 20 73 75 63 68 20 6d | 65 6e 75 20 69 74 65 6d |o such m|enu item|
|00001e30| 22 20 22 4e 6f 20 73 75 | 63 68 20 6d 65 6e 75 22 |" "No su|ch menu"|
|00001e40| 20 22 25 53 20 69 73 20 | 61 20 6d 65 6e 75 2c 20 | "%S is |a menu, |
|00001e50| 6e 6f 74 20 61 20 6d 65 | 6e 75 20 69 74 65 6d 22 |not a me|nu item"|
|00001e60| 20 34 20 73 79 6d 62 6f | 6c 2d 6e 61 6d 65 20 30 | 4 symbo|l-name 0|
|00001e70| 20 35 38 20 74 6f 67 67 | 6c 65 2d 70 20 3a 73 65 | 58 togg|le-p :se|
|00001e80| 6c 65 63 74 65 64 20 3a | 61 63 74 69 76 65 20 6f |lected :|active o|
|00001e90| 6b 20 6b 65 79 77 6f 72 | 64 20 69 20 6f 6e 2d 70 |k keywor|d i on-p|
|00001ea0| 20 74 20 22 6e 6f 74 20 | 61 20 74 6f 67 67 6c 65 | t "not |a toggle|
|00001eb0| 20 6d 65 6e 75 20 69 74 | 65 6d 22 20 76 63 6f 6e | menu it|em" vcon|
|00001ec0| 63 61 74 20 6e 65 77 2d | 69 74 65 6d 20 63 6f 6e |cat new-|item con|
|00001ed0| 73 20 22 63 6f 75 6c 64 | 6e 27 74 20 66 69 6e 64 |s "could|n't find|
|00001ee0| 20 25 53 20 6f 6e 20 69 | 74 73 20 70 61 72 65 6e | %S on i|ts paren|
|00001ef0| 74 3f 22 20 22 6e 6f 20 | 25 53 20 73 6c 6f 74 20 |t?" "no |%S slot |
|00001f00| 74 6f 20 73 65 74 3a 20 | 25 53 22 20 73 65 74 2d |to set: |%S" set-|
|00001f10| 6d 65 6e 75 62 61 72 2d | 64 69 72 74 79 2d 66 6c |menubar-|dirty-fl|
|00001f20| 61 67 5d 20 36 5d 29 0a | 28 66 73 65 74 20 27 65 |ag] 6]).|(fset 'e|
|00001f30| 6e 61 62 6c 65 2d 6d 65 | 6e 75 2d 69 74 65 6d 20 |nable-me|nu-item |
|00001f40| 23 5b 28 70 61 74 68 29 | 20 22 c0 09 c2 c3 23 87 |#[(path)| "....#.|
|00001f50| 22 20 5b 65 6e 61 62 6c | 65 2d 6d 65 6e 75 2d 69 |" [enabl|e-menu-i|
|00001f60| 74 65 6d 2d 31 20 70 61 | 74 68 20 6e 69 6c 20 74 |tem-1 pa|th nil t|
|00001f70| 5d 20 34 20 22 5c 0a 4d | 61 6b 65 20 74 68 65 20 |] 4 "\.M|ake the |
|00001f80| 6e 61 6d 65 64 20 6d 65 | 6e 75 20 69 74 65 6d 20 |named me|nu item |
|00001f90| 62 65 20 73 65 6c 65 63 | 74 61 62 6c 65 2e 0a 50 |be selec|table..P|
|00001fa0| 41 54 48 20 69 73 20 61 | 20 6c 69 73 74 20 6f 66 |ATH is a| list of|
|00001fb0| 20 73 74 72 69 6e 67 73 | 20 77 68 69 63 68 20 69 | strings| which i|
|00001fc0| 64 65 6e 74 69 66 79 20 | 74 68 65 20 70 6f 73 69 |dentify |the posi|
|00001fd0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 6d 65 6e 75 |tion of |the menu|
|00001fe0| 20 69 74 65 6d 20 69 6e | 20 0a 74 68 65 20 6d 65 | item in| .the me|
|00001ff0| 6e 75 20 68 69 65 72 61 | 72 63 68 79 2e 20 20 28 |nu hiera|rchy. (|
|00002000| 5c 22 46 69 6c 65 5c 22 | 20 5c 22 53 61 76 65 5c |\"File\"| \"Save\|
|00002010| 22 29 20 6d 65 61 6e 73 | 20 74 68 65 20 6d 65 6e |") means| the men|
|00002020| 75 20 69 74 65 6d 20 63 | 61 6c 6c 65 64 20 5c 22 |u item c|alled \"|
|00002030| 53 61 76 65 5c 22 0a 75 | 6e 64 65 72 20 74 68 65 |Save\".u|nder the|
|00002040| 20 74 6f 70 6c 65 76 65 | 6c 20 5c 22 46 69 6c 65 | topleve|l \"File|
|00002050| 5c 22 20 6d 65 6e 75 2e | 20 20 28 5c 22 4d 65 6e |\" menu.| (\"Men|
|00002060| 75 5c 22 20 5c 22 46 6f | 6f 5c 22 20 5c 22 49 74 |u\" \"Fo|o\" \"It|
|00002070| 65 6d 5c 22 29 20 6d 65 | 61 6e 73 20 74 68 65 20 |em\") me|ans the |
|00002080| 0a 6d 65 6e 75 20 69 74 | 65 6d 20 63 61 6c 6c 65 |.menu it|em calle|
|00002090| 64 20 5c 22 49 74 65 6d | 5c 22 20 75 6e 64 65 72 |d \"Item|\" under|
|000020a0| 20 74 68 65 20 5c 22 46 | 6f 6f 5c 22 20 73 75 62 | the \"F|oo\" sub|
|000020b0| 6d 65 6e 75 20 6f 66 20 | 5c 22 4d 65 6e 75 5c 22 |menu of |\"Menu\"|
|000020c0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 64 69 73 61 |."]).(fs|et 'disa|
|000020d0| 62 6c 65 2d 6d 65 6e 75 | 2d 69 74 65 6d 20 23 5b |ble-menu|-item #[|
|000020e0| 28 70 61 74 68 29 20 22 | c0 09 c2 89 23 87 22 20 |(path) "|....#." |
|000020f0| 5b 65 6e 61 62 6c 65 2d | 6d 65 6e 75 2d 69 74 65 |[enable-|menu-ite|
|00002100| 6d 2d 31 20 70 61 74 68 | 20 6e 69 6c 5d 20 34 20 |m-1 path| nil] 4 |
|00002110| 22 5c 0a 4d 61 6b 65 20 | 74 68 65 20 6e 61 6d 65 |"\.Make |the name|
|00002120| 64 20 6d 65 6e 75 20 69 | 74 65 6d 20 62 65 20 75 |d menu i|tem be u|
|00002130| 6e 73 65 6c 65 63 74 61 | 62 6c 65 2e 0a 50 41 54 |nselecta|ble..PAT|
|00002140| 48 20 69 73 20 61 20 6c | 69 73 74 20 6f 66 20 73 |H is a l|ist of s|
|00002150| 74 72 69 6e 67 73 20 77 | 68 69 63 68 20 69 64 65 |trings w|hich ide|
|00002160| 6e 74 69 66 79 20 74 68 | 65 20 70 6f 73 69 74 69 |ntify th|e positi|
|00002170| 6f 6e 20 6f 66 20 74 68 | 65 20 6d 65 6e 75 20 69 |on of th|e menu i|
|00002180| 74 65 6d 20 69 6e 20 0a | 74 68 65 20 6d 65 6e 75 |tem in .|the menu|
|00002190| 20 68 69 65 72 61 72 63 | 68 79 2e 20 20 28 5c 22 | hierarc|hy. (\"|
|000021a0| 46 69 6c 65 5c 22 20 5c | 22 53 61 76 65 5c 22 29 |File\" \|"Save\")|
|000021b0| 20 6d 65 61 6e 73 20 74 | 68 65 20 6d 65 6e 75 20 | means t|he menu |
|000021c0| 69 74 65 6d 20 63 61 6c | 6c 65 64 20 5c 22 53 61 |item cal|led \"Sa|
|000021d0| 76 65 5c 22 0a 75 6e 64 | 65 72 20 74 68 65 20 74 |ve\".und|er the t|
|000021e0| 6f 70 6c 65 76 65 6c 20 | 5c 22 46 69 6c 65 5c 22 |oplevel |\"File\"|
|000021f0| 20 6d 65 6e 75 2e 20 20 | 28 5c 22 4d 65 6e 75 5c | menu. |(\"Menu\|
|00002200| 22 20 5c 22 46 6f 6f 5c | 22 20 5c 22 49 74 65 6d |" \"Foo\|" \"Item|
|00002210| 5c 22 29 20 6d 65 61 6e | 73 20 74 68 65 20 0a 6d |\") mean|s the .m|
|00002220| 65 6e 75 20 69 74 65 6d | 20 63 61 6c 6c 65 64 20 |enu item| called |
|00002230| 5c 22 49 74 65 6d 5c 22 | 20 75 6e 64 65 72 20 74 |\"Item\"| under t|
|00002240| 68 65 20 5c 22 46 6f 6f | 5c 22 20 73 75 62 6d 65 |he \"Foo|\" subme|
|00002250| 6e 75 20 6f 66 20 5c 22 | 4d 65 6e 75 5c 22 2e 22 |nu of \"|Menu\"."|
|00002260| 5d 29 0a 28 66 73 65 74 | 20 27 73 65 6c 65 63 74 |]).(fset| 'select|
|00002270| 2d 74 6f 67 67 6c 65 2d | 6d 65 6e 75 2d 69 74 65 |-toggle-|menu-ite|
|00002280| 6d 20 23 5b 28 70 61 74 | 68 29 20 22 c0 09 c2 89 |m #[(pat|h) "....|
|00002290| 23 87 22 20 5b 65 6e 61 | 62 6c 65 2d 6d 65 6e 75 |#." [ena|ble-menu|
|000022a0| 2d 69 74 65 6d 2d 31 20 | 70 61 74 68 20 74 5d 20 |-item-1 |path t] |
|000022b0| 34 20 22 5c 0a 4d 61 6b | 65 20 74 68 65 20 6e 61 |4 "\.Mak|e the na|
|000022c0| 6d 65 64 20 74 6f 67 67 | 6c 65 2d 20 6f 72 20 72 |med togg|le- or r|
|000022d0| 61 64 69 6f 2d 73 74 79 | 6c 65 20 6d 65 6e 75 20 |adio-sty|le menu |
|000022e0| 69 74 65 6d 20 62 65 20 | 69 6e 20 74 68 65 20 60 |item be |in the `|
|000022f0| 73 65 6c 65 63 74 65 64 | 27 20 73 74 61 74 65 2e |selected|' state.|
|00002300| 0a 50 41 54 48 20 69 73 | 20 61 20 6c 69 73 74 20 |.PATH is| a list |
|00002310| 6f 66 20 73 74 72 69 6e | 67 73 20 77 68 69 63 68 |of strin|gs which|
|00002320| 20 69 64 65 6e 74 69 66 | 79 20 74 68 65 20 70 6f | identif|y the po|
|00002330| 73 69 74 69 6f 6e 20 6f | 66 20 74 68 65 20 6d 65 |sition o|f the me|
|00002340| 6e 75 20 69 74 65 6d 20 | 69 6e 20 0a 74 68 65 20 |nu item |in .the |
|00002350| 6d 65 6e 75 20 68 69 65 | 72 61 72 63 68 79 2e 20 |menu hie|rarchy. |
|00002360| 20 28 5c 22 46 69 6c 65 | 5c 22 20 5c 22 53 61 76 | (\"File|\" \"Sav|
|00002370| 65 5c 22 29 20 6d 65 61 | 6e 73 20 74 68 65 20 6d |e\") mea|ns the m|
|00002380| 65 6e 75 20 69 74 65 6d | 20 63 61 6c 6c 65 64 20 |enu item| called |
|00002390| 5c 22 53 61 76 65 5c 22 | 0a 75 6e 64 65 72 20 74 |\"Save\"|.under t|
|000023a0| 68 65 20 74 6f 70 6c 65 | 76 65 6c 20 5c 22 46 69 |he tople|vel \"Fi|
|000023b0| 6c 65 5c 22 20 6d 65 6e | 75 2e 20 20 28 5c 22 4d |le\" men|u. (\"M|
|000023c0| 65 6e 75 5c 22 20 5c 22 | 46 6f 6f 5c 22 20 5c 22 |enu\" \"|Foo\" \"|
|000023d0| 49 74 65 6d 5c 22 29 20 | 6d 65 61 6e 73 20 74 68 |Item\") |means th|
|000023e0| 65 20 0a 6d 65 6e 75 20 | 69 74 65 6d 20 63 61 6c |e .menu |item cal|
|000023f0| 6c 65 64 20 5c 22 49 74 | 65 6d 5c 22 20 75 6e 64 |led \"It|em\" und|
|00002400| 65 72 20 74 68 65 20 5c | 22 46 6f 6f 5c 22 20 73 |er the \|"Foo\" s|
|00002410| 75 62 6d 65 6e 75 20 6f | 66 20 5c 22 4d 65 6e 75 |ubmenu o|f \"Menu|
|00002420| 5c 22 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 64 65 |\"."]).(|fset 'de|
|00002430| 73 65 6c 65 63 74 2d 74 | 6f 67 67 6c 65 2d 6d 65 |select-t|oggle-me|
|00002440| 6e 75 2d 69 74 65 6d 20 | 23 5b 28 70 61 74 68 29 |nu-item |#[(path)|
|00002450| 20 22 c0 09 c2 c3 23 87 | 22 20 5b 65 6e 61 62 6c | "....#.|" [enabl|
|00002460| 65 2d 6d 65 6e 75 2d 69 | 74 65 6d 2d 31 20 70 61 |e-menu-i|tem-1 pa|
|00002470| 74 68 20 74 20 6e 69 6c | 5d 20 34 20 22 5c 0a 4d |th t nil|] 4 "\.M|
|00002480| 61 6b 65 20 74 68 65 20 | 6e 61 6d 65 64 20 74 6f |ake the |named to|
|00002490| 67 67 6c 65 2d 20 6f 72 | 20 72 61 64 69 6f 2d 73 |ggle- or| radio-s|
|000024a0| 74 79 6c 65 20 6d 65 6e | 75 20 69 74 65 6d 20 62 |tyle men|u item b|
|000024b0| 65 20 69 6e 20 74 68 65 | 20 60 75 6e 73 65 6c 65 |e in the| `unsele|
|000024c0| 63 74 65 64 27 20 73 74 | 61 74 65 2e 0a 50 41 54 |cted' st|ate..PAT|
|000024d0| 48 20 69 73 20 61 20 6c | 69 73 74 20 6f 66 20 73 |H is a l|ist of s|
|000024e0| 74 72 69 6e 67 73 20 77 | 68 69 63 68 20 69 64 65 |trings w|hich ide|
|000024f0| 6e 74 69 66 79 20 74 68 | 65 20 70 6f 73 69 74 69 |ntify th|e positi|
|00002500| 6f 6e 20 6f 66 20 74 68 | 65 20 6d 65 6e 75 20 69 |on of th|e menu i|
|00002510| 74 65 6d 20 69 6e 20 0a | 74 68 65 20 6d 65 6e 75 |tem in .|the menu|
|00002520| 20 68 69 65 72 61 72 63 | 68 79 2e 20 20 28 5c 22 | hierarc|hy. (\"|
|00002530| 46 69 6c 65 5c 22 20 5c | 22 53 61 76 65 5c 22 29 |File\" \|"Save\")|
|00002540| 20 6d 65 61 6e 73 20 74 | 68 65 20 6d 65 6e 75 20 | means t|he menu |
|00002550| 69 74 65 6d 20 63 61 6c | 6c 65 64 20 5c 22 53 61 |item cal|led \"Sa|
|00002560| 76 65 5c 22 0a 75 6e 64 | 65 72 20 74 68 65 20 74 |ve\".und|er the t|
|00002570| 6f 70 6c 65 76 65 6c 20 | 5c 22 46 69 6c 65 5c 22 |oplevel |\"File\"|
|00002580| 20 6d 65 6e 75 2e 20 20 | 28 5c 22 4d 65 6e 75 5c | menu. |(\"Menu\|
|00002590| 22 20 5c 22 46 6f 6f 5c | 22 20 5c 22 49 74 65 6d |" \"Foo\|" \"Item|
|000025a0| 5c 22 29 20 6d 65 61 6e | 73 20 74 68 65 20 0a 6d |\") mean|s the .m|
|000025b0| 65 6e 75 20 69 74 65 6d | 20 63 61 6c 6c 65 64 20 |enu item| called |
|000025c0| 5c 22 49 74 65 6d 5c 22 | 20 75 6e 64 65 72 20 74 |\"Item\"| under t|
|000025d0| 68 65 20 5c 22 46 6f 6f | 5c 22 20 73 75 62 6d 65 |he \"Foo|\" subme|
|000025e0| 6e 75 20 6f 66 20 5c 22 | 4d 65 6e 75 5c 22 2e 22 |nu of \"|Menu\"."|
|000025f0| 5d 29 0a 28 70 72 6f 76 | 69 64 65 20 27 6d 65 6e |]).(prov|ide 'men|
|00002600| 75 62 61 72 29 0a | |ubar). | |
+--------+-------------------------+-------------------------+--------+--------+